﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CI.Caja.BE;
using CI.Caja.DL;

namespace CI.Caja.BL
{
    public class BL_Cargo : IBL_Cargo
    {
        IDA_Cargo CargoDA = null;
        public BE_Cargo ObtenerCargo(int idcargo)
        {
            try
            {
                return CargoDA.ObtenerCargo(idcargo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public ICollection<BE_Cargo> ListarCargos()
        {

            try
            {
                return CargoDA.ListarCargo();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
